﻿<%@ Page Title="" Language="C#" MasterPageFile="~/kcadastro.Master" AutoEventWireup="true"
    CodeBehind="empresas_edit.aspx.cs" Inherits="Kcadastro.adm.empresas_edit" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:TextBox ID="tbi_emp" runat="server" Visible="false"></asp:TextBox>
    <!-- ===== Sidebar Close and Content Part start ====== -->
    <div id="content_wrap">
        <div class="title_bar">
            <h2 class="page_title">
                Administrativo</h2>
        </div>
        <div class="content_area">
            <h3 class="cont_title">
                Minha Empresa</h3>
            <%--<form id="my_acc" class="commonForm">--%>
            <div class="control-group">
                <label for="focusedInput" class="control-label">
                    CNPJ:</label>
                <div class="controls">
                    <asp:TextBox ID="tb_cnpj" runat="server" CssClass="input-xlarge"></asp:TextBox>
                    <!--<asp:Button ID="bt_consultar" runat="server" Text="Consultar" onclick="bt_consultar_Click" />-->
                    <asp:Literal ID="lt_msgcnpj" runat="server"></asp:Literal><br />
                </div>
            </div>
            <div class="control-group">
                <label for="focusedInput" class="control-label">
                    Razão Social:</label>
                <div class="controls">
                    <asp:TextBox ID="tb_rs" runat="server" Columns="60" ReadOnly="false" CssClass="input-xlarge"></asp:TextBox>
                </div>
            </div>
            <div class="control-group">
                <label for="focusedInput" class="control-label">
                    Nome Fantasia:</label>
                <div class="controls">
                    <asp:TextBox ID="tb_fantasia" runat="server" Columns="40" ReadOnly="false" CssClass="input-xlarge"></asp:TextBox>
                </div>
            </div>
            <div class="control-group">
                <label for="focusedInput" class="control-label">
                    CNAE:</label>
                <div class="controls">
                    <asp:TextBox ID="tb_cnaedescri" runat="server" Columns="40" ReadOnly="false" CssClass="input-xlarge"></asp:TextBox>
                </div>
            </div>
            <div class="control-group">
                <label for="focusedInput" class="control-label">
                    CNJ:</label>
                <div class="controls">
                    <asp:TextBox ID="tb_cnjdescri" runat="server" Columns="40" ReadOnly="false" CssClass="input-xlarge"></asp:TextBox>
                </div>
            </div>
            <div class="control-group">
                <label for="focusedInput" class="control-label">
                    Logradouro:</label>
                <div class="controls">
                    <asp:TextBox ID="tb_logradouro" runat="server" Columns="60" ReadOnly="false" CssClass="input-xlarge"></asp:TextBox>
                </div>
            </div>
            <div class="control-group">
                <label for="focusedInput" class="control-label">
                    Número:</label>
                <div class="controls">
                    <asp:TextBox ID="tb_numero" runat="server" Columns="10" ReadOnly="false" CssClass="input-xlarge"></asp:TextBox>
                </div>
            </div>
            <div class="control-group">
                <label for="focusedInput" class="control-label">
                    Complemento:</label>
                <div class="controls">
                    <asp:TextBox ID="tb_complemento" runat="server" Columns="30" ReadOnly="false" CssClass="input-xlarge"></asp:TextBox>
                </div>
            </div>
            <div class="control-group">
                <div style="width: 250px;" class="FL devider">
                    <label for="focusedInput" class="control-label">
                        CEP:</label>
                    <div class="controls">
                        <asp:TextBox ID="tb_cep" runat="server" Columns="12" ReadOnly="false" CssClass="input_sml"></asp:TextBox>
                    </div>
                </div>
                <div style="width: 500px;" class="FR devider">
                    <label for="focusedInput" class="control-label-sml">
                        Bairro:</label>
                    <div class="controlsmal">
                        <asp:TextBox ID="tb_bairro" runat="server" Columns="20" ReadOnly="false" CssClass="input_sml"></asp:TextBox>
                    </div>
                </div>
                <div class="clear">
                </div>
                <div style="width: 250px;" class="FL devider no-mrg-btm">
                    <label for="focusedInput" class="control-label">
                        Cidade:</label>
                    <div class="controls">
                        <asp:TextBox ID="tb_cidade" runat="server" Columns="20" ReadOnly="false"  CssClass="input_sml"></asp:TextBox>
                    </div>
                </div>
                <div style="width: 500px;" class="FR devider no-mrg-btm">
                    <label for="focusedInput" class="control-label-sml">
                        UF:</label>
                    <div class="controlsmal">
                        <asp:TextBox ID="tb_uf" runat="server" Columns="3" ReadOnly="false" CssClass="input_sml"></asp:TextBox>
                    </div>
                </div>
            </div>
            <div class="control-group">
                <label for="focusedInput" class="control-label">
                    Nome do Contato:</label>
                <div class="controls">
                    <asp:TextBox ID="tb_contato" runat="server" Columns="40" CssClass="input-xlarge"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="*"
                        ControlToValidate="tb_contato" ValidationGroup="empresa"></asp:RequiredFieldValidator>
                </div>
            </div>
            <div class="control-group">
                <label for="focusedInput" class="control-label">
                    Telefone do Contato:</label>
                <div class="controls">
                    <asp:TextBox ID="tb_telcontato" runat="server" Columns="20" CssClass="input-xlarge"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="*"
                        ControlToValidate="tb_telcontato" ValidationGroup="empresa"></asp:RequiredFieldValidator>
                </div>
            </div>
            <div class="control-group">
                <label for="focusedInput" class="control-label">
                    Email do Contato:</label>
                <div class="controls">
                    <asp:TextBox ID="tb_emailContata" runat="server" Columns="40" CssClass="input-xlarge"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="*"
                        ControlToValidate="tb_emailContata" ValidationGroup="empresa"></asp:RequiredFieldValidator>
                </div>
            </div>
            <div class="control-group">
                <label for="focusedInput" class="control-label">
                    Email de Cobrança:</label>
                <div class="controls">
                    <asp:TextBox ID="tb_emailCob" runat="server" Columns="40" CssClass="input-xlarge"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ErrorMessage="*"
                        ControlToValidate="tb_emailCob" ValidationGroup="empresa"></asp:RequiredFieldValidator>
                </div>
            </div>
            <div class="control-group">
                <label for="focusedInput" class="control-label">
                    Site da Empresa:</label>
                <div class="controls">
                    <asp:TextBox ID="tb_site" runat="server" Columns="40" CssClass="input-xlarge"></asp:TextBox>
                </div>
            </div>
            <div class="control-group">
                <label for="select01" class="control-label">
                    Tipo de Contrato:</label>
                <div class="controls">
                    <asp:DropDownList ID="dd_tipoCOntrato" runat="server">
                        <asp:ListItem Text="Valor Fixo Mensal" Value="1"></asp:ListItem>
                        <asp:ListItem Text="on Demand" Value="2"></asp:ListItem>
                        <asp:ListItem Text="Pré-Pago" Value="3"></asp:ListItem>
                    </asp:DropDownList>
                </div>
            </div>
            <div class="control-group">
                <label for="focusedInput" class="control-label">
                    QTD Contratada:</label>
                <div class="controls">
                    <asp:TextBox ID="tb_qtdcontratada" runat="server" CssClass="input-xlarge"></asp:TextBox><asp:RequiredFieldValidator
                        ID="RequiredFieldValidator5" runat="server" ErrorMessage="*" ControlToValidate="tb_qtdcontratada"
                        ValidationGroup="empresa"></asp:RequiredFieldValidator>
                </div>
            </div>
            <div class="control-group">
                <label for="focusedInput" class="control-label">
                    Valor Contrato:</label>
                <div class="controls">
                    <asp:TextBox ID="tb_valorContrato" runat="server" CssClass="input-xlarge"></asp:TextBox><asp:RequiredFieldValidator
                        ID="RequiredFieldValidator6" runat="server" ErrorMessage="*" ControlToValidate="tb_valorContrato"
                        ValidationGroup="empresa"></asp:RequiredFieldValidator>
                </div>
            </div>
            <div class="control-group">
                <label for="focusedInput" class="control-label">
                </label>
                <div class="controls">
                    <asp:Button ID="bt_gravar" runat="server" Text="Gravar" CssClass="btn btn-primary"
                        ValidationGroup="empresa" OnClick="bt_gravar_Click" />
                </div>
            </div>
            <h3 class="cont_title">
                Usuários desta empresa</h3>
            <asp:GridView ID="gv_lista" DataKeyNames="PK_IDuser" runat="server" OnRowCommand="gv_lista_RowCommand"
                AutoGenerateColumns="false" AllowPaging="false" CssClass="tableMain" AlternatingRowStyle-CssClass="altr_raw"
                HeaderStyle-CssClass="title_raw" Width="100%">
                <Columns>
                    <asp:BoundField DataField="PK_IDuser" HeaderText="ID" />
                    <asp:BoundField DataField="nomecompleto" HeaderText="Nome Completo" />
                    <asp:BoundField DataField="email" HeaderText="email" />
                    <asp:ButtonField CommandName="visualizar" ControlStyle-CssClass="view" />
                </Columns>
            </asp:GridView>
            <%--</form>--%>
        </div>
        <!-- close content_area -->
    </div>
</asp:Content>
